package com.example.demo.service;

import io.milvus.v2.service.collection.request.CreateCollectionReq;
import io.milvus.v2.service.vector.response.SearchResp;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public abstract class AbstractMilvusService {

    public static final String CollectionName = "contents_collection";

    public abstract void createCollection();

    public abstract CreateCollectionReq.CollectionSchema schema();

    public abstract List<?> index();

    public abstract void insert(String contnt) throws Exception;

    public abstract List<SearchResp.SearchResult> search(String contnt) throws Exception;
}
